package com.sakiko.service.impl;

import com.sakiko.mapper.EmployeeMapper;
import com.sakiko.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * projectName: com.sakiko.service.impl
 *
 * @author: Yang
 * description:
 * time: 2025/7/28 14:39
 */
@Transactional
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public int deleteEmp() {
        int rows = employeeMapper.deleteById(4);
        System.out.println("EmployeeServiceImpl.deleteEmp");
        int i = 1 / 0;
        return rows;
    }
}
